class RemoveUpAndDownAndAddVoteToItemReviewVotes < ActiveRecord::Migration
  def self.up
    remove_column :item_review_votes, :up
    remove_column :item_review_votes, :down
    add_column :item_review_votes, :vote, :integer, :default => 0, :after => 'user_id'
  end

  def self.down
    remove_column :item_review_votes, :vote
    add_column :item_review_votes, :down, :integer
    add_column :item_review_votes, :up, :integer
  end
end
